import java.util.Scanner;

public class demo012 {
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int a=scan.nextInt();
        if(a%3==0) {
            System.out.println("是");
        }
        else {
            System.out.println("不是");
        }
    }
}
